home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / examples / wpane.c < prev    next >
C/C++ Source or Header  |  1994-03-13  |  582b  |  31 lines

  1. /*
  2. ** WPANE.C: Divides a window into many panes.
  3. */
  4.  
  5. #include <pictor.h>
  6.  
  7. void main()
  8. {
  9.    int i,handle1,handle2;
  10.  
  11.    /* initialize library */
  12.    initvideo();
  13.  
  14.    wopen(5,6,17,70,foreback(BOLD+CYAN,BLUE),0x00);
  15.  
  16.    handle1 = 0;
  17.    handle2 = wpane(WP_VERTICAL,35);
  18.  
  19.    for(i = 0;i < 8;i++) {
  20.       setwpane(handle1);
  21.       xprintf(wputs,"Pane handle: %d",handle1);
  22.       handle1 = wpane(WP_HORIZONTAL,3);
  23.  
  24.       setwpane(handle2);
  25.       xprintf(wputs,"Pane handle: %d",handle2);
  26.       handle2 = wpane(WP_HORIZONTAL,3);
  27.    }
  28.    kbdread();
  29.    wclose();
  30. }
  31.